package edu.scut.course_management.po;

import java.util.Date;

/**
 * 持久化对象， 对应库表：course_notice
 * 
 * @author thompson
 */
public class CourseNotice {
    private Integer noticeId;
    private String title;
    private String content;
    private Date publishDate;//Date 类型可能会有问题，java.util 和 java.sql
    private Integer periodId;
    private String year;
    private String term;
    private Integer courseId;
    private String buildingId;
    private String roomNumber;

    public Integer getNoticeId() {
        return noticeId;
    }

    public void setNoticeId(Integer noticeId) {
        this.noticeId = noticeId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public Integer getPeriodId() {
        return periodId;
    }

    public void setPeriodId(Integer periodId) {
        this.periodId = periodId;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getTerm() {
        return term;
    }

    public void setTerm(String term) {
        this.term = term;
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public String getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(String buildingId) {
        this.buildingId = buildingId;
    }

    public String getRoomNumber() {
        return roomNumber;
    }

    public void setRoomNumber(String roomNumber) {
        this.roomNumber = roomNumber;
    }

    @Override
    public String toString() {
        return "CourseNotice {" + 
               "buildingId=" + buildingId + 
               ", content=" + content + 
               ", courseId=" + courseId + 
               ", noticeId=" + noticeId + 
               ", periodId=" + periodId + 
               ", publishDate=" + publishDate + 
               ", roomNumber=" + roomNumber + 
               ", term=" + term + 
               ", title=" + title + 
               ", year=" + year + 
               "}";
    }

    
    
}